//This code was created with the help of Cairngorm Creator by Tyler Beck.
//The portions of this document created by Cairngorm Creator 
//are provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
//CONDITIONS OF ANY KIND, either express or implied.
//========================================================



package net.optix.ip.vo
{
	public class InventorVO
	{
		public var inventorID:int;
		public var userID:int;
		public var clientID:int;
		
		public var firstName:String;
		public var lastName:String;
		public var email:String;
		public var password:String;
		public var address:String;
		public var city:String;
		public var state:String;
		public var country:String;
		public var postalCode:String;
		public var language:String;
		public var workPhone:String;
		public var homePhone:String;
		public var cellPhone:String;
		public var fax:String;
		
		public var message:String;
		
		public static function purseInventor(value:XML):InventorVO
		{
			var inventor:InventorVO	=	new InventorVO();
			try
			{
				inventor.inventorID		=	value.InventorID;
				inventor.userID			=	value.UserID;
				inventor.clientID		=	value.ClientID;
				inventor.workPhone		=	value.WorkPhone;
				inventor.homePhone		=	value.HomePhone;
				inventor.cellPhone		=	value.CellPhone;
				inventor.fax			=	value.Fax;
				
				inventor.firstName		=	value.FirstName;
				inventor.lastName		=	value.LastName;
				inventor.email			=	value.Email;
				inventor.address		=	value.Address;
				inventor.city			=	value.City;
				inventor.state			=	value.State;
				inventor.country		=	value.Country;
				inventor.postalCode		=	value.PostalCode;
			}
			catch(error:Error){}
			return inventor;
		}
	}
}